home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 …ember: Reference Library / Dev.CD Dec 97 RL.toast / What's New / Tool Chest / Testing & Debugging / Virtual User / Examples / External Tool Templates / CPlus Tool Template / ThreadedVUTool.make < prev    next >
Encoding:
Text File  |  1997-10-15  |  8.0 KB  |  258 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        ThreadedVUTool.make
  3. #
  4. #    Contains:    xxx put contents here xxx
  5. #
  6. #    Written by:    Stuart Russell
  7. #                based on the VU C++ Template by Rick Violet
  8. #
  9. #    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  10. #
  11. #    Change History (most recent first):
  12. #
  13. #                01/10/95    SBR        Threaded; parameter extraction layer
  14. #                11/18/92    RV        created
  15. #
  16. #    To Do:
  17. #
  18.  
  19. #————————————————————————————————————————————————————————————————————
  20. #———————————————————————————————————————————————    Key Names
  21. MainTarget        =    ThreadedVUTool
  22. AppSignature    =    vu21
  23.  
  24. #————————————————————————————————————————————————————————————————————
  25. #———————————————————————————————————————————————    Folder/File names
  26. ObjectDir        =    :Objects:
  27. CPlusDump        =    "CPlusDump"
  28. CPlusDumpDir    =    ":"
  29.  
  30. #————————————————————————————————————————————————————————————————————
  31. #———————————————————————————————————————————————    TOOL OPTIONS
  32. Model                =    -model far
  33. Sym                    =    -sym   full
  34. Mbg                    =    -mbg   full
  35. PascalOptions         =    {Model} {Sym} {Mbg} -mf -m
  36. AsmOptions             =    {Model} {Sym} 
  37. CPlusDefines         =    -d __UseStream__ -d __UseBusyCursor__
  38. CPlusOptions         =    {CPlusDefines} {Model} {Sym} {Mbg} -mf -m
  39. CPlusDumpOptions    =    -dump {CPlusDumpDir}CPlusDump.h.dump
  40. CPlusLoad             =    -load {CPlusDumpDir}CPlusDump.h.dump
  41. RezOptions             =    -a
  42. LinkOptions         =    {Model} {Sym} -t APPL -c {AppSignature} -mf -d -srt
  43. SetFileOptions        =    -a Bi
  44.  
  45. #————————————————————————————————————————————————————————————————————
  46. #———————————————————————————————————————————————    RezHeaders
  47. #RezHeaders    = ∂
  48. #            "Application.r.h" ∂
  49. #            "RequestDispatcher.r.h" ∂
  50.  
  51. #————————————————————————————————————————————————————————————————————
  52. #———————————————————————————————————————————————    RezSources
  53. #RezSources    = ∂
  54. #            "Application.r" ∂
  55. #            "RequestDispatcher.r" ∂
  56.  
  57. #————————————————————————————————————————————————————————————————————
  58. #———————————————————————————————————————————————    TargetObjs
  59. TargetObjs    = ∂
  60.             "{ObjectDir}AERequest.cp.o" ∂
  61.             "{ObjectDir}Application.cp.o" ∂
  62.             "{ObjectDir}Configuration.cp.o" ∂
  63.             "{ObjectDir}List.cp.o" ∂
  64.             "{ObjectDir}Object.cp.o" ∂
  65.             "{ObjectDir}PascalString.cp.o" ∂
  66.             "{ObjectDir}Request.cp.o" ∂
  67.             "{ObjectDir}RequestDispatcher.cp.o" ∂
  68.             "{ObjectDir}ScriptValue.cp.o" ∂
  69.             "{ObjectDir}Service.cp.o" ∂
  70.             "{ObjectDir}StandardServices.cp.o" ∂
  71.  
  72. #————————————————————————————————————————————————————————————————————
  73. #———————————————————————————————————————————————    TargetLibs
  74. TargetLibs    =    ∂
  75.             "{CLibraries}"CPlusLib.o ∂
  76.             "{Libraries}"Interface.o ∂
  77.             "{Libraries}"Runtime.o ∂
  78.             "{Libraries}"ToolLibs.o ∂
  79.             "{CLibraries}"StdCLib.o ∂
  80.             
  81. #————————————————————————————————————————————————————————————————————
  82. #———————————————————————————————————————————————    Objects Directory
  83. {ObjectDir} ƒ :    
  84.  
  85. #————————————————————————————————————————————————————————————————————
  86. #———————————————————————————————————————————————    LINK
  87. {MainTarget}    ƒƒ    {TargetObjs} {TargetLibs} 
  88.     Link -o {Targ} {TargetObjs} {TargetLibs} {LinkOptions}
  89.     SetFile {Targ} {SetFileOptions}
  90.     Save -a
  91.     
  92. #————————————————————————————————————————————————————————————————————
  93. #———————————————————————————————————————————————    REZ
  94. #{MainTarget} ƒƒ {RezHeaders} {RezSources}
  95. #    Rez {RezSources} -o {Targ} {RezOptions}
  96.  
  97. {MainTarget} ƒƒ 
  98.     Echo "include ∂"ThreadedVUTool.rsrc∂" not 'ckid';" | rez -append -o {Targ}
  99.  
  100. #————————————————————————————————————————————————————————————————————
  101. #———————————————————————————————————————————————    CPlusDump
  102.     
  103. "{CPlusDumpDir}CPlusDump.h.dump" ƒ "{CPlusDumpDir}CPlusDump.h"
  104.     CPlus  "{CPlusDumpDir}CPlusDump.h" -o "{CPlusDumpDir}CPlusDump.h.o"  {CPlusOptions} {CPlusDumpOptions} 
  105.  
  106. "{CPlusDumpDir}CPlusDump.h.o" ƒ "{CPlusDumpDir}CPlusDump.h.dump"
  107.     IF ! `Exists "{CPlusDumpDir}CPlusDump.h.o"`
  108.         CPlus  "{CPlusDumpDir}CPlusDump.h" -o "{CPlusDumpDir}CPlusDump.h.o"  {CPlusOptions} {CPlusDumpOptions} 
  109.     END
  110.     
  111. #————————————————————————————————————————————————————————————————————
  112. #———————————————————————————————————————————————    CPLUS
  113. .cp.o ƒ .cp
  114.     CPlus  {default}.cp -o {Targ} {CPlusOptions} {CPlusLoad} 
  115.  
  116. #————————————————————————————————————————————————————————————————————
  117. #———————————————————————————————————————————————    PASCAL
  118. .p.o ƒ .p
  119.     Pascal  {default}.p -o {Targ} {CPlusOptions} {CPlusLoad} 
  120.  
  121. #————————————————————————————————————————————————————————————————————
  122. #———————————————————————————————————————————————    ASM
  123. .a.o ƒ .a
  124.     Asm  {default}.a -o {Targ} {AsmOptions}
  125.     
  126. #————————————————————————————————————————————————————————————————————
  127. #———————————————————————————————————————————————    Dependency rules
  128.  
  129. #————————————————————————————————————————————————————————————————————
  130. #———————————————————————————————————————————————    AERequest.cp
  131. "{ObjectDir}AERequest.cp.o"    ƒ    ∂
  132.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  133.         "AERequest.cp"    ∂
  134.         "AERequest.h"    ∂
  135.         "List.h"    ∂
  136.         "Object.h"    ∂
  137.         "Request.h"    ∂
  138.         "RequestDispatcher.h"    ∂
  139.         "RequestDispatcher.r.h"    ∂
  140.         "ScriptValue.h"    ∂
  141.         "Service.h"    ∂
  142.         "VUAE.h"
  143.  
  144. #————————————————————————————————————————————————————————————————————
  145. #———————————————————————————————————————————————    Application.cp
  146. "{ObjectDir}Application.cp.o"    ƒ    ∂
  147.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  148.         "Application.cp"    ∂
  149.         "AERequest.h"    ∂
  150.         "Application.h"    ∂
  151.         "Configuration.h"    ∂
  152.         "List.h"    ∂
  153.         "Object.h"    ∂
  154.         "Request.h"    ∂
  155.         "RequestDispatcher.h"    ∂
  156.         "RequestDispatcher.r.h"    ∂
  157.         "ScriptValue.h"    ∂
  158.         "Service.h"    ∂
  159.         "VUAE.h"
  160.  
  161. #————————————————————————————————————————————————————————————————————
  162. #———————————————————————————————————————————————    Configuration.cp
  163. "{ObjectDir}Configuration.cp.o"    ƒ    ∂
  164.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  165.         "Configuration.cp"    ∂
  166.         "Configuration.h"
  167.  
  168. #————————————————————————————————————————————————————————————————————
  169. #———————————————————————————————————————————————    List.cp
  170. "{ObjectDir}List.cp.o"    ƒ    ∂
  171.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  172.         "List.cp"    ∂
  173.         "List.h"    ∂
  174.         "Object.h"
  175.  
  176. #————————————————————————————————————————————————————————————————————
  177. #———————————————————————————————————————————————    Object.cp
  178. "{ObjectDir}Object.cp.o"    ƒ    ∂
  179.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  180.         "Object.cp"    ∂
  181.         "Object.h"
  182.  
  183. #————————————————————————————————————————————————————————————————————
  184. #———————————————————————————————————————————————    PascalString.cp
  185. "{ObjectDir}PascalString.cp.o"    ƒ    ∂
  186.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  187.         "PascalString.cp"    ∂
  188.         "PascalString.h"
  189.  
  190. #————————————————————————————————————————————————————————————————————
  191. #———————————————————————————————————————————————    Request.cp
  192. "{ObjectDir}Request.cp.o"    ƒ    ∂
  193.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  194.         "Request.cp"    ∂
  195.         "List.h"    ∂
  196.         "Object.h"    ∂
  197.         "Request.h"    ∂
  198.         "RequestDispatcher.h"    ∂
  199.         "RequestDispatcher.r.h"    ∂
  200.         "ScriptValue.h"    ∂
  201.         "Service.h"    ∂
  202.         "VUAE.h"
  203.  
  204. #————————————————————————————————————————————————————————————————————
  205. #———————————————————————————————————————————————    RequestDispatcher.cp
  206. "{ObjectDir}RequestDispatcher.cp.o"    ƒ    ∂
  207.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  208.         "RequestDispatcher.cp"    ∂
  209.         "Application.h"    ∂
  210.         "List.h"    ∂
  211.         "StandardServices.h"    ∂
  212.         "Object.h"    ∂
  213.         "PascalString.h"    ∂
  214.         "Request.h"    ∂
  215.         "RequestDispatcher.h"    ∂
  216.         "RequestDispatcher.r.h"    ∂
  217.         "ScriptValue.h"    ∂
  218.         "Service.h"    ∂
  219.         "VUAE.h"
  220.  
  221. #————————————————————————————————————————————————————————————————————
  222. #———————————————————————————————————————————————    ScriptValue.cp
  223. "{ObjectDir}ScriptValue.cp.o"    ƒ    ∂
  224.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  225.         "ScriptValue.cp"    ∂
  226.         "Object.h"    ∂
  227.         "ScriptValue.h"    ∂
  228.         "VUAE.h"
  229.  
  230. #————————————————————————————————————————————————————————————————————
  231. #———————————————————————————————————————————————    Service.cp
  232. "{ObjectDir}Service.cp.o"    ƒ    ∂
  233.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  234.         "Service.cp"    ∂
  235.         "Application.h"    ∂
  236.         "List.h"    ∂
  237.         "Object.h"    ∂
  238.         "Request.h"    ∂
  239.         "RequestDispatcher.h"    ∂
  240.         "RequestDispatcher.r.h"    ∂
  241.         "ScriptValue.h"    ∂
  242.         "Service.h"    ∂
  243.         "VUAE.h"
  244.  
  245. #————————————————————————————————————————————————————————————————————
  246. #———————————————————————————————————————————————    StandardServices.cp
  247. "{ObjectDir}StandardServices.cp.o"    ƒ    ∂
  248.         "{CPlusDumpDir}CPlusDump.h.dump"    ∂
  249.         "StandardServices.cp"    ∂
  250.         "Application.h"    ∂
  251.         "PascalString.h"    ∂
  252.         "Object.h"    ∂
  253.         "ScriptValue.h"    ∂
  254.         "Service.h"    ∂
  255.         "StandardServiceErrors.h"    ∂
  256.         "StandardServices.h"
  257.  
  258.